package festival.io;

public class Parser {
    /**
     * Converts a String of the form "{str1,str2,str3,...}" to an array of Strings.
     * @param block  String of the form "{str1,str2,str3,...}"
     * @return a String array containing the elements of block
     */
    public String[] blockToStringArray(String block) {
        return block.replaceAll("\\{", "").replaceAll("\\}", "").split(",");
    }
}
